home *** CD-ROM | disk | FTP | other *** search
- global gTargetList, gBaseURL, gHistory, gEyeBallChan, gSegStart, gNextRandTime, gButtonInks, gRearViewChan, gCarByeSnd, gBigMapChan, gAlertChan, gVioConChan, gTerrainChan, oldMousePoint, oldAngle, gRealPageList, gReadyToGo
-
- on startMovie
- setConstants()
- initSprites()
- set the visible of sprite 23 to 1
- end
-
- on setConstants
- set gTargetList to ["getaways.html", "about.html", "whatsnew.html", "travel.html", "join.html", "insurance.html", "education.html", "autoservices.html", "csaakids.html"]
- set gRealPageList to ["/getaways/", "/about/", "/whatsnew/", "/travel/", "/join/", "/insurance/", "/education/", "/autoservices/", "/csaakids/"]
- if not gHistory then
- set gHistory to []
- end if
- set gButtonInks to [6, 33]
- set gRearViewChan to 16
- set gTerrainChan to [2, 3, 5, 6, 7, 11, 12]
- set gAlertChan to [46, 47, 48]
- set gCarByeSnd to "carBy"
- set gBigMapChan to 24
- set gEyeBallChan to 20
- set gVioConChan to 45
- set gSegStart to the ticks
- set gNextRandTime to 600 + random(800)
- set the randomSeed to the ticks
- end
-
- on initSprites
- allSprites(-1, 1, 1, gBigMapChan - 1)
- allSprites(0, 0, gBigMapChan, 42)
- puppetSprite(gEyeBallChan, 1)
- puppetSprite(gEyeBallChan + 1, 1)
- set the visible of sprite 23 to 1
- set the visible of sprite gRearViewChan to 0
- preLoad(label("tween"), label("tween") + 4)
- preLoadCast(the number of member "weekgtaway-viol", the number of member "kdsclb-viol")
- allSprites(-1, 0, getAt(gAlertChan, 1), getLast(gAlertChan))
- set oldMousePoint to [:]
- set oldAngle to [:]
- end
-
- on conformCastNames
- set vStart to the number of member "viol"
- set bStart to the number of member "bill"
- set oldDelim to the itemDelimiter
- set the itemDelimiter to "-"
- set castIndex to 0
- if (bStart > 0) and (vStart > 0) then
- repeat with i in gTargetList
- set shortName to item 1 of i
- set the name of cast (vStart + castIndex) to shortName & "-viol"
- set the name of cast (bStart + castIndex) to shortName & "-bill"
- set castIndex to castIndex + 1
- end repeat
- end if
- set the itemDelimiter to oldDelim
- end
-
- on setTargetPage thePageNum
- global gTindex, gNextFrame
- if integerp(thePageNum) then
- set gTindex to thePageNum
- else
- if not gNextFrame or (gNextFrame = getLast(gTargetList)) then
- set thePageNum to 1
- else
- set thePageNum to getPos(gTargetList, gNextFrame) + 1
- end if
- end if
- set gNextFrame to getAt(gTargetList, thePageNum)
- puppetSprite(gVioConChan, 1)
- go(label("tween"))
- end
-
- on idle
- global gReadyToGo
- if NetDone() = 1 then
- set gReadyToGo to 1
- end if
- if not (the visible of sprite gBigMapChan) then
- followEyes()
- end if
- end
-
- on enterFrame
- global gSegStart, gNextRandTime
- if the visible of sprite gBigMapChan = 1 then
- doMap("animate")
- checkMapRolz()
- else
- if the ticks > (gSegStart + gNextRandTime) then
- animateRearView()
- end if
- end if
- end
-
- on stopMovie
- allSprites(0, 1)
- end
-